﻿namespace PPSMS_Model
{
    /// <summary>
    /// 电站状态表
    /// </summary>
    public class StationStatus
    {
        /// <summary>
        /// ID 主键自增
        /// </summary>
        public long Id { get; set; }
        /// <summary>
        /// 时间戳
        /// </summary>
        public string? Timestamp { get; set; }
        /// <summary>
        /// 当前发电功率
        /// </summary>
        public double? CurrentPower { get; set; }
        /// <summary>
        /// 发电平均功率
        /// </summary>
        public double? AveragePower { get; set; }
        /// <summary>
        /// 逆变器数量
        /// </summary>
        public long? InverterCount { get; set; }
    }
    /*CREATE TABLE IF NOT EXISTS STATION_STATUS (
        ID INTEGER PRIMARY KEY AUTOINCREMENT,--ID 主键自增 
        TIMESTAMP TEXT,--时间戳
        CURRENT_POWER REAL,--当前发电功率
        AVERAGE_POWER REAL,--发电平均功率
        INVERTER_COUNT INTEGER--逆变器数量
    );--电站状态表*/
}
